<?php

/* @var $this \yii\web\View */
/* @var $content string */

use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
//use yii\bootstrap\Alert;
use webvimark\modules\UserManagement\components\GhostMenu;
use webvimark\modules\UserManagement\components\GhostNav;
use webvimark\modules\UserManagement\UserManagementModule;

AppAsset::register($this);
//引入css
//AppAsset::addCss($this, '@web/js/list/bootstrap-3.3.7-dist/css/bootstrap.min.css');
//AppAsset::addCss($this, '@web/css/base.css');
//AppAsset::addCss($this, '@web/css/officeHall/uploadAssetPackage/uploadInformation.css');
//AppAsset::addCss($this, '@web/css/common/header-footer.css');

//$this->registerCssFile('@web/js/list/bootstrap-3.3.7-dist/css/bootstrap.min.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/base.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/layui/css/layui.css', ['position' => $this::POS_HEAD]);
$this->registerCssFile('@web/css/common/header-footer.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);


//引入js
//AppAsset::addScript($this, '@web/js/list/jquery/jquery.min.js');
//AppAsset::addScript($this, '@web/js/list/bootstrap-3.3.7-dist/js/bootstrap.min.js');
//AppAsset::addScript($this, '@web/js/list/jquery/jquery.form.js');
//AppAsset::addScript($this, '@web/js/common.js');
//AppAsset::addScript($this, '@web/js/officeHall/uploadAssetPackage/uploadInformation.js');

//$this->registerJsFile('@web/js/list/jquery/jquery.form.js',['depends'=>['backend\assets\AppAsset'],'position'=>$this::POS_HEAD]);
$this->registerJsFile('@web/js/common.js',['depends'=>['backend\assets\AppAsset'],'position'=>$this::POS_HEAD]);
$this->registerJsFile('@web/css/layui/layui.all.js',['depends'=>['backend\assets\AppAsset'],'position'=>$this::POS_HEAD]);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--//视口快捷键:meta:vp+tap键 (可视区宽度为当前屏幕宽度,自适应手机宽度,禁止手机缩放,禁止用户放大或缩小到实际尺寸之上)-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0" />
    <!--    <meta name="viewport" content="width=device-width, initial-scale=1">-->
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>

    <!--当遇到IE9以下的版本的使用会执行下面注释的代码  (HThtml5shiv.min.js和respond.js IE8支持HTML5元素和媒体查	询,respond.min.js在只能在服务器上运行,在本地不会运行-->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<body>
<?php $this->beginBody() ?>
<div class="wrap">
    <div class="container-fluid">
        <div class="container">
            <?= Breadcrumbs::widget([
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
            ]) ?>
            <?= Alert::widget() ?>
            <?= $content ?>
        </div>
    </div>
</div>
<?php
$cssString = <<<CSS
/*.container-fluid{margin-top:70px;}*/
.breadcrumb{background-color:#fff; box-shadow:  0 0 6px #999;border-radius:0px;}
.lte-hide-title {font-size:30px;margin-top:20px;margin-bottom: 10px;font-weight:500;line-height: 1.1;}
.panel-default{box-shadow:  0 0 6px #999;background: #fff;border-radius:0px;}
.nav .active .active a{height:auto;}
.wrap {margin-top: 150px;}
CSS;
$this->registerCss($cssString);
?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
